package com.zhangmeng.windowportbind.dto;

public class PortBind {

    private String protocol;//协议
    private String localIp;//本地地址
    private int localPort;//本地端口
    private String remoteIp;//远程地址
    private int remotePort;//远程端口
    private String state;//状态
    private String pid;//进程号；

    @Override
    public String toString() {
        return "PortBind{" +
                "protocol='" + protocol + '\'' +
                ", localIp='" + localIp + '\'' +
                ", localPort=" + localPort +
                ", remoteIp='" + remoteIp + '\'' +
                ", remotePort=" + remotePort +
                ", state='" + state + '\'' +
                ", pid='" + pid + '\'' +
                '}';
    }

    public PortBind() {
    }

    public PortBind(String protocol, String localIp, int localPort, String remoteIp, int remotePort, String state, String pid) {
        this.protocol = protocol;
        this.localIp = localIp;
        this.localPort = localPort;
        this.remoteIp = remoteIp;
        this.remotePort = remotePort;
        this.state = state;
        this.pid = pid;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getLocalIp() {
        return localIp;
    }

    public void setLocalIp(String localIp) {
        this.localIp = localIp;
    }

    public int getLocalPort() {
        return localPort;
    }

    public void setLocalPort(int localPort) {
        this.localPort = localPort;
    }

    public String getRemoteIp() {
        return remoteIp;
    }

    public void setRemoteIp(String remoteIp) {
        this.remoteIp = remoteIp;
    }

    public int getRemotePort() {
        return remotePort;
    }

    public void setRemotePort(int remotePort) {
        this.remotePort = remotePort;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }
}
